favorite_languages = {
    'jen':'python',
    'sarah':'c',
    'edward':'ruby',
    'phil':'python'
}

for name,languages in favorite_languages.items():
    print(f"{name.title()}'s favorite languages is {languages.title()}")
print()
for name in favorite_languages.keys():
    print(name.title())
print()
for name in favorite_languages:
    print(name)
print()
for name in sorted(favorite_languages):
    print(name)